From: Ray Strode Date: Fri, 16 Aug 2013 17:26:13 +0000 (-0400) Subject: loginDialog: fix session menu visibility X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3721 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=945b357ed802b74583fe885342c543f2af0b84d5;p=gnome-shell.git loginDialog: fix session menu visibility The shouldShowSessionMenu function has a few bugs in it. This fixes them. https://bugzilla.gnome.org/show_bug.cgi?id=706153 --- diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 27c7ef1d3..46bd8959f 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -601,13 +601,10 @@ const LoginDialog = new Lang.Class({ }, _shouldShowSessionMenuButton: function() { - if (this._authPrompt.verifyingUser) - return true; - - if (!this._user) + if (this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.VERIFYING) return false; - if (this._user.is_logged_in) + if (this._user && this._user.is_logged_in()) return false; return true;